package cn.mybeky.douban {
	import cn.mybeky.douban.methods.Movies;
	import cn.mybeky.douban.methods.People;
	
	import com.adobe.webapis.URLLoaderBase;
	
	import flash.net.URLLoader;
	
	
	public class Douban extends URLLoaderBase {
		
		public namespace douban_internal = "http://mybeky.cn/douban/";		
		public static const STATIC_URL:String = "http://api.douban.com/";
		
		private var _api_key      :String;
		private var _people       :People;
		private var _movies       :Movies;
		public function Douban(api_key:String = "") {
			_api_key = api_key; 
			_people = new People(this);
			_movies = new Movies(this);
		}
		
		public function get api_key():String {
			return _api_key;
		}
		public function set api_key(value:String):void {
			_api_key = value;
		}
		
		public function get people():People {
            return _people;
        }
        public function set people(value:People):void {
            _people = value;
        }
		
		public function get movies():Movies {
			return _movies;
		}
		public function set movies(value:Movies):void {
			_movies = value;
		}
		public function get urlLoader():URLLoader {
            return getURLLoader();  
        }
	}
}